<?php
namespace app\controller;

class Index extends \core\Controller
{
    /**
     * @author sweeterstar<2021-04-25>
     * 访问地址：index/index
     * @return [type]
     */
    public function index()
    {
        $user = (new \app\model\User)->find(1, ['id', 'user_name', 'phone']);
        return $this->fetch('', compact('user'));
    }

    /**
     * 访问地址：index/helloWorld
     * @author sweeterstar<2021-04-26>
     * @return [type]
     */
    public function helloWorld()
    {
        return $this->fetch();
    }
}